package com.sc.service.impl;

import com.sc.dao.UserDao;
import com.sc.model.User;
import com.sc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;
    public User selectUser(int userId) {
        return this.userDao.selectUser(userId);
    }
    public void add(String username,String password) {
        userDao.addUser(username);
    }
}
